package com.zhehekeji.opsys.api.resp;

import com.zhehekeji.opsys.api.common.util.SuperResp;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class GetChannelListResp extends SuperResp {

    private Integer recordSize;
    List<ChannelInfo> channleInfos;

    public Integer getRecordSize() {
        return recordSize;
    }

    public void setRecordSize(Integer recordSize) {
        this.recordSize = recordSize;
    }

    public List<ChannelInfo> getChannleInfos() {
        return channleInfos;
    }

    public void setChannleInfos(List<ChannelInfo> channleInfos) {
        this.channleInfos = channleInfos;
    }

    public static class ChannelInfo implements Serializable {
        private String code;
        private String name;
        private String imgAddress;
        private String poster;
        private String createTime;
        private Integer status;
        private Long cpCode;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getImgAddress() {
            return imgAddress;
        }

        public void setImgAddress(String imgAddress) {
            this.imgAddress = imgAddress;
        }

        public String getPoster() {
            return poster;
        }

        public void setPoster(String poster) {
            this.poster = poster;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public Long getCpCode() {
            return cpCode;
        }

        public void setCpCode(Long cpCode) {
            this.cpCode = cpCode;
        }
    }
}
